﻿@model KipLink.Models.LoginModel

@{
    ViewBag.Title = "Log in";
}

@*@section Header {
    @Html.ActionLink("Cancel", "Index", "Home", null, new { data_icon = "arrow-l", data_rel = "back" })
    <h1>@ViewBag.Title</h1>
}*@

<p>
    Please enter your user name and password. @Html.ActionLink("Register", "Register") if you don't have an account.
</p>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary()


    <table class="form-signin">
        <tr>
            <td>
                @Html.LabelFor(m => m.UserName)
            </td>
            <td>
                @Html.TextBoxFor(m => m.UserName)
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(m => m.Password)
            </td>
            <td>
                @Html.PasswordFor(m => m.Password)
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                @Html.LabelFor(m => m.RememberMe)
                @Html.CheckBoxFor(m => m.RememberMe)
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <input class="btn btn-success btn-default" type="submit" value="Log in" />
            </td>
        </tr>
    </table>
}
        @section Scripts {
            @Scripts.Render("~/bundles/jqueryval")
        }
